package cn.edu.xmu.oomall.goods.microservice;

import cn.edu.xmu.oomall.core.util.Common;
import cn.edu.xmu.oomall.goods.microservice.vo.RetShareActivityInfoVo;
import cn.edu.xmu.oomall.goods.microservice.vo.ShareActivityPo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Xusheng Wang
 * @date 2021/12/23
 * @studentId 34520192201587
 */
@FeignClient(value = "activity-service")
public interface ShareActivityService {
    @GetMapping("/shareactivities/{id}")
    InternalReturnObject<RetShareActivityInfoVo> getShareActivityById(@PathVariable(value = "id") Long id);

    @GetMapping("/internal/getshareactbyonsaleid/{id}")
    InternalReturnObject<ShareActivityPo> getShareActById(@PathVariable("id") Long id);
}
